package cn.saltybe.analysis.crawler.wbtc.citiesList;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

import java.util.List;

@Gecco(matchUrl = "https://www.58.com/changecity.html?fullpath={fullPath}", pipelines = { "wbtcCityPipeline" }, downloader = "htmlUnitDownloader")
public class WbtcProvinceList implements HtmlBean {
    private static final long serialVersionUID = 1L;

    @Request
    private HttpRequest request;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    @HtmlField(cssPath = ".content-province")
    private List<WbtcProvince> provinces;

    public List<WbtcProvince> getProvinces() {
        return provinces;
    }

    public void setProvinces(List<WbtcProvince> provinces) {
        this.provinces = provinces;
    }
}
